package com.dingli.framework.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * CREATE TABLE `news` (
 *   `nid` int(11) NOT NULL AUTO_INCREMENT,
 *   `title` varchar(500) COLLATE utf8_unicode_520_ci DEFAULT NULL,
 *   `author` varchar(100) COLLATE utf8_unicode_520_ci DEFAULT NULL,
 *   `date` date DEFAULT NULL,
 *   `description` text COLLATE utf8_unicode_520_ci,
 *   `newsPhoto` varchar(255) COLLATE utf8_unicode_520_ci DEFAULT NULL,
 *   PRIMARY KEY (`nid`)
 * ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_520_ci;
 */
@Data
@ApiModel("文旅政策表")
public class News {
    @ApiModelProperty("文章ID")
    private int nid;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("时间")
    private Date date;

    @ApiModelProperty("内容")
    private String description;

    @ApiModelProperty("封面")
    private String newsPhoto;

}
